package a1_p04_jw_kw.struct;

public class GraphTransition {
	public String weight = "1";
	public Node node1;
	public Node node2;
	
	public GraphTransition(Node node1, Node node2) {
		this.node1 = node1;
		this.node2 = node2;
	}
	
	public GraphTransition(Node node1, Node node2, String weight) {
		this.node1 = node1;
		this.node2 = node2;
		this.weight = weight;
	}
	
	public GraphTransition(Node node1, String attribute1, Node node2, String attribute2) {
		this.node1 = node1;
		this.node1.attribute = Integer.parseInt(attribute1);
		this.node2 = node2;
		this.node2.attribute = Integer.parseInt(attribute2);
	}	
	
	public GraphTransition(Node node1, String attribute1, Node node2, String attribute2, String weight) {
		this.node1 = node1;
		this.node1.attribute = Integer.parseInt(attribute1);
		this.node2 = node2;
		this.node2.attribute = Integer.parseInt(attribute2);
		this.weight = weight;
	}	
	
}
